<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>公交详情</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-cache" />
  
  <meta http-equiv="Pragma" content="no-cache"> 
<meta http-equiv="Expires" content="0"> 

<link rel="alternate icon" type="image/png" href="assets/i/favicon.png">

<link rel="stylesheet" href="assets/css/amaze.min.css">
<link rel="stylesheet" href="assets/css/amazeui.min.css">
<link rel="stylesheet" href="assets/fonts2/iconfont.css">
<link rel="stylesheet" href="assets/css/app.css">
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/handlebars.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=W7L9pFfPKrkMlRO0EHuLoxWd"></script>
<style>
body{
	padding-bottom:50px;
	position:static;
}
#map_1{
	width:100%;
	height:500px;
}
</style>

</head>
<body>
	<header class="demo-bar head">
		<a href="javascript:void(0);" onclick="$('#sy').click();" id="back2"
			class="icon iconfont icon-left demo-icon-home"></a>
		<h1 id="title"></h1>
	</header>
	<div style="border-bottom: 1px solid #EFEEEE;">
		<div id="map_1"></div>
	</div>	


	<script type="text/javascript">
		var map = new BMap.Map("map_1");            // 创建Map实例
		map.centerAndZoom(new BMap.Point(118.807329,32.038691), 12);

		var busline = new BMap.BusLineSearch(map,{
			renderOptions:{map:map,panel:"r-result"},
				onGetBusListComplete: function(result){
				   if(result) {
					 var fstLine = result.getBusListItem(0);//获取第一个公交列表显示到map上
					 busline.getBusLine(fstLine);
				   }
				}
			});
		function busSearch(){
			var busName = 245;
			busline.getBusList(busName);
		}
		setTimeout(function(){
			busSearch();
		},1500);
	</script>


</body>
</html>
